﻿using RazorEngine.Templating;
using SW.Lite.Infrastructure.Helpers;

namespace SW.Lite.Core.Template.Razor
{
    /// <summary>
    ///     Class RazorTemplate.
    /// </summary>
    /// <typeparam name="TModel">The type of the t model.</typeparam>
    public class Template<TModel> : TemplateBase<TModel>
    {
        #region Properties

        /// <summary>
        ///     Configuration helper.
        /// </summary>
        public ConfigHelper ConfigHelper
        {
            get { return ConfigHelper.Instance; }
        }

        /// <summary>
        ///     Random helper.
        /// </summary>
        public RandomHelper RandomHelper
        {
            get { return RandomHelper.Instance; }
        }

        /// <summary>
        ///     Serializer helper.
        /// </summary>
        public SerializeHelper SerializerHelper
        {
            get { return SerializeHelper.Instance; }
        }

        #endregion
    }
}